<template>
  <span>{{ props.value }}</span>
</template>
<script setup lang="ts">
interface EditorEmit {
  (name: 'change', value: string): void
}

const props = defineProps({
  name: {
    type: String,
  },
  value: {
    type: [String, Number],
  },
  disabled: {
    type: Boolean,
    default: false,
  },
  readOnly: {
    type: Boolean,
    default: false,
  },
  placeholder: {
    type: String,
  },
})
const emit = defineEmits<EditorEmit>()

const curValue = ref()
const change = (value: string) => {
  console.log('输入框的值')
  emit('change', value)
}
</script>
